function SceneConfigScene(options) {
    this.configurations = [ 'Intervalo:&nbsp;&nbsp;<&nbsp;&nbsp;Agora&nbsp;&nbsp;>',
                            'Mostrar:&nbsp;&nbsp;<&nbsp;&nbsp;No&nbsp;Início&nbsp;&nbsp;>',
                            'Lista Negra', 'Clipes Comédia', 'Record Kids', 'Esporte' ];
    this.listIndex = 0;
	this.options = options;
}

SceneConfigScene.prototype.initialize = function () {
	alert("SceneConfigScene.initialize()");
}

SceneConfigScene.prototype.handleShow = function () {
    $('#configurations').sfList({data: this.configurations, index:'0', itemsPerPage: 6});
    $('#configurations').show();
}

SceneConfigScene.prototype.handleHide = function () {
	alert("SceneMainScene.handleHide()");
}

SceneConfigScene.prototype.handleFocus = function () {
	alert("SceneMainScene.handleFocus()");
}

SceneConfigScene.prototype.handleBlur = function () {
	alert("SceneMainScene.handleBlur()");
}

SceneConfigScene.prototype.handleKeyDown = function (keyCode) {
	alert("SceneMainScene.handleKeyDown(" + keyCode + ")");
    switch (parseInt(keyCode)) {
		case $.sfKey.LEFT:
            alert(this.configurations[0].search("Agora"));
            if (this.listIndex == 0) { //Intervalo
                if (this.configurations[0].search("Agora") != -1)
                    this.configurations[0] = 'Intervalo:&nbsp;&nbsp;<&nbsp;&nbsp;Dia&nbsp;&nbsp;>';
                else
                    this.configurations[0] = 'Intervalo:&nbsp;&nbsp;<&nbsp;&nbsp;Agora&nbsp;&nbsp;>';
                $('#configurations').sfList({data: this.configurations, index: 0});
            }
            break;
        case $.sfKey.RIGHT:
            if (this.listIndex == 0) { //Intervalo
                if (this.configurations[0].search("Agora") != -1)
                    this.configurations[0] = 'Intervalo:&nbsp;&nbsp;<&nbsp;&nbsp;Dia&nbsp;&nbsp;>';
                else
                    this.configurations[0] = 'Intervalo:&nbsp;&nbsp;<&nbsp;&nbsp;Agora&nbsp;&nbsp;>';
                $('#configurations').sfList({data: this.configurations, index: 0});
            } else {
                if (this.listIndex == 1) { //Mostrar
                    
                }
            }
            break;
        case $.sfKey.DOWN:
            if (this.listIndex < 6)
                $('#configurations').sfList({data: this.configurations, index: ++this.listIndex});
            break;
        case $.sfKey.UP:
            if (this.listIndex > 0)
                $('#configurations').sfList({data: this.configurations, index: --this.listIndex});
            break;
        case $.sfKey.RED:
            $.sfScene.hide('ConfigScene');
            $.sfScene.show('MainScene');
            $.sfScene.focus('MainScene');
            break;
    }
}